﻿<phone:PhoneApplicationPage xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"  
    x:Class="BabySmash7.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:BabySmash7.Shapes"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded">

    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFA0A0A0" Offset="0"/>
                <GradientStop Color="Black" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>

        <TextBlock x:Name="PageTitle" Visibility="Visible" Opacity="0.8" Text="BabySmash7" Foreground="#FF4C4C4C" Margin="21,10,0,28" Style="{StaticResource PhoneTextTitle1Style}"/>

        <MediaElement x:Name="media" Width="0" Height="0" Visibility="Collapsed" />
        <Canvas Name="figuresCanvas" Background="Transparent" />

        <Grid x:Name="panelStart" Width="480" Height="800">
            <Grid Visibility="Visible" Margin="0,50,0,0" Height="590" Width="400" VerticalAlignment="Center" HorizontalAlignment="Center">
                <Border CornerRadius="6" HorizontalAlignment="Left" Height="590" Width="400" >
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                            <GradientStop Color="#FFFCFCFC" Offset="0"/>
                            <GradientStop Color="#FFE9E9E9" Offset="0.3"/>
                            <GradientStop Color="#FFD6D6D6" Offset="0.5"/>
                            <GradientStop Color="#FFE5E5E5" Offset="0.7"/>
                            <GradientStop Color="#FFEEEEEE" Offset="1"/>
                        </LinearGradientBrush>
                    </Border.Background>
                </Border>

                <StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="20,20,20,20">
                    <Image Source="icon.png" VerticalAlignment="Top" Width="100" Height="100" />
                    <TextBlock Margin="0,15,0,0" TextWrapping="Wrap" FontStyle="Italic" Opacity="0.9" HorizontalAlignment="Center" Text="'As babies smash on the phone, colored shapes, letters and numbers appear on the screen'" FontSize="22" Foreground="#FF4C4C4C" />
                    <TextBlock Margin="0,20,0,0" TextWrapping="Wrap" Opacity="0.8" HorizontalAlignment="Center" Text="BabySmash7 is a wp7 based version of Scott Hanselmans children's game 'BabySmash'" FontSize="22" Foreground="#FF4C4C4C"/>
                    <TextBlock Margin="0,20,0,0" TextWrapping="Wrap" Opacity="0.8" HorizontalAlignment="Left" Text="Version 1.0" FontSize="22" Foreground="#FF4C4C4C" />
                    <TextBlock Margin="0,0,0,0" TextWrapping="Wrap" Opacity="0.8" HorizontalAlignment="Left" Text="Mail: sigurd.snorteland@gmail.com" FontSize="22" Foreground="#FF4C4C4C"/>

                    <Grid x:Name="gridSound" Margin="0,30,0,0" MouseLeftButtonDown="Sound_MouseLeftButtonDown">
                        <TextBlock x:Name="txtSound" Opacity="0.8" VerticalAlignment="Center"  HorizontalAlignment="Left" Text="Music: On" FontSize="22" Foreground="#FF4C4C4C"/>
                        <Image x:Name="imgSound" Opacity="0.6" Source="sound_on.png" Width="50" Height="50" VerticalAlignment="Center" HorizontalAlignment="Right" />
                    </Grid>

                    <Button x:Name="btnStart" Margin="0,25,0,0" Opacity="0.6" Content="Start game" BorderThickness="0" FontFamily="Calibri" Background="Black" Click="btnStart_Click" />
                </StackPanel>
            </Grid>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>